//
//  ClientManger.swift
//  TCPService
//
//  Created by adel on 2017/9/20.
//  Copyright © 2017年 adel. All rights reserved.
//

import Cocoa
import SwiftSocket
class ClientManger: NSObject {

    var tcpClient : TCPClient
    
    init(tcpClient : TCPClient) {
        self.tcpClient = tcpClient
    }

}


extension ClientManger{
    
    func startReadMsg() {
        
        guard let lMsg = self.tcpClient.read(9) else {
            return
        }
        
        let recvStr = String(bytes: lMsg, encoding: .utf8)
        
        print(recvStr ?? "000")
    }
}
